<div class="hosts form">    
    <?php echo $this->Form->create('Host',array('enctype' => 'multipart/form-data')); ?>
    <fieldset>
        <legend><?php __('Host Registration'); ?></legend>
        <?php
            echo $this->Form->input('business_name',array( 'label' => 'Business name'));
            echo $this->Form->input('image',array('type'=>'file'));
            echo '<center>';
            if (file_exists('img/profile/host/'.$this->data['Host']['id'].'.jpg')) {
                echo $this->Html->image('profile/host/'.$this->data['Host']['id'].'.jpg', array('width' => '100'));
            } else {
                echo $this->Html->image('default_host.jpg', array('alt' => 'Preview','id'=>'previewField'));
            }               
            echo '</center>';
            echo '<br/><br/>';
            echo $this->Form->input('email_addr', array('label' => 'Email Address', 'disabled' => 'disabled'));
        ?>
    </fieldset>
    <div style="float:right;">
    <?php echo $this->Form->end('Update'); ?>
    </div>
    <div style="clear:both;"></div>
</div>
